package kr.jobtc.board;


import android.app.Activity;
import android.content.Intent;
import android.view.MenuItem;

public class OptionMenu {

    public OptionMenu(Activity context, MenuItem item){
    	int id = item.getItemId();
        Intent intent = null;
        
        
        if (id==R.id.boardIntro){
        	intent = new Intent(context, IntroActivity.class);
        }else if (id==R.id.boardInput){
        	intent = new Intent(context, IputActivity.class);
        }else if (id==R.id.boardModify){
        	intent = new Intent(context, Board_Modify.class);
        }else if(id == R.id.boardDelete){
        	intent = new Intent(context, DeleteActivity.class);
        }else if(id == R.id.boardList){
        	intent = new Intent(context, ListActivity.class);
        }else if(id == R.id.boardView){
        	intent = new Intent(context, ViewActivity.class);
        }
        intent.setFlags(intent.FLAG_ACTIVITY_NO_HISTORY); 
        context.startActivity(intent);
    }
	
	
}
